package com.example.ibsp_demo.pojo.entity.city;

public class City {
    private Integer cyid;
    private String name;
    private String adcode; //城市编码（由地理位置api获得）
    private double latitude;//城市经度
    private double longitude;//城市维度

    public City() {
    }

    public City(double latitude, Integer cyid, String name, String adcode, double longitude) {
        this.latitude = latitude;
        this.cyid = cyid;
        this.name = name;
        this.adcode = adcode;
        this.longitude = longitude;
    }

    @Override
    public String toString() {
        return "city{" +
                "cyid=" + cyid +
                ", name='" + name + '\'' +
                ", adcode='" + adcode + '\'' +
                ", latitude=" + latitude +
                ", longitude=" + longitude +
                '}';
    }

    public Integer getCyid() {
        return cyid;
    }

    public void setCyid(Integer cyid) {
        this.cyid = cyid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAdcode() {
        return adcode;
    }

    public void setAdcode(String adcode) {
        this.adcode = adcode;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }
}
